package cn.idanda.core.entity.base;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 *  权限模型
 * @author rain
 * @since 2015年9月13日 下午12:48:49
 */
@Entity
@Table(name="idan_base_permission")
public class Permission extends IdEntity implements Serializable{
	private static final long serialVersionUID = 1L;

	private String permissionName;

    private String permissionSign;

    private String description;

    public String getPermissionName() {
        return permissionName;
    }

    public void setPermissionName(String permissionName) {
        this.permissionName = permissionName == null ? null : permissionName.trim();
    }

    public String getPermissionSign() {
        return permissionSign;
    }

    public void setPermissionSign(String permissionSign) {
        this.permissionSign = permissionSign == null ? null : permissionSign.trim();
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    @Override
    public String toString() {
        return "Permission [id=" + id + ", permissionName=" + permissionName + ", permissionSign=" + permissionSign + ", description=" + description + "]";
    }

}